package com.bsoft.gol.hbs.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import ctd.spring.boot.annotation.SsdevDao;
import hcn.base.feerule.SysPayCof;
import java.util.List;
@SsdevDao(serviceId = "sysPayCof")
public abstract class SysPayCofDAO extends HibernateSupportDelegateDAO<SysPayCof> {

    public SysPayCofDAO() {
        this.setKeyField("sysPayCofId");
    }

    @DAOMethod(sql = " from SysPayCof where orgId=:orgId and moduleId=:moduleId")
    public abstract List<SysPayCof> findSysPayCofList(@DAOParam("orgId")String orgId, @DAOParam("moduleId")String moduleId);

    @DAOMethod(sql = " from SysPayCof where orgId=:orgId and moduleId=:moduleId  and deliveryModeCode=:deliveryModeCode")
    public abstract List<SysPayCof> findSysPayCof(@DAOParam("orgId")String orgId, @DAOParam("moduleId")String moduleId, @DAOParam("deliveryModeCode")String deliveryModeCode);

}
